package com.yy.wga.user.feign.api;

import com.yy.wga.common.core.dto.BaseFeignApiReqDTO;
import com.yy.wga.common.core.dto.Result;
import com.yy.wga.user.feign.response.UserRelationSubCountResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * 用户粉丝数据汇总
 *
 * @author guochao
 * @since 2025-01-04 18:34:28
 */
@FeignClient(name = "UserRelationSummaryFeign",
        url = "http://127.0.0.1:9100",
        path = "/api/user/relationSummary/")
public interface UserRelationSummaryFeign {
    /**
     * 获取下级粉丝数量
     *
     * @param request BaseFeignApiReqDTO
     * @return UserRelationSubCountResp
     */
    @PostMapping("subFansCount")
    Result<UserRelationSubCountResp> subFansCount(@RequestBody @Valid BaseFeignApiReqDTO request);
}
